package com.damage.materiel_dept.service;

import com.damage.common.entity.PurchaseInvoice;
import com.damage.common.exception.IncorrectPriceException;
import com.damage.common.exception.IncorrectStateException;

public interface IPurchaseInvoiceService {

    Integer newPurchaseInvoice(PurchaseInvoice purchaseInvoice)
            throws IncorrectStateException,IncorrectPriceException;

    PurchaseInvoice findDetailedPurchaseInvoiceById(Integer purchaseInvoiceId);

    Integer setProcessInstanceId(Integer purchaseInvoiceId, String processInstanceId);

    PurchaseInvoice findById(Integer purchaseInvoiceId);
}
